package com.project_doctor.service;

import com.project_doctor.pojo.Conversation;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 龙龙与贝儿
* @description 针对表【t_conversation】的数据库操作Service
* @createDate 2025-06-07 11:22:38
*/
public interface ConversationService extends IService<Conversation> {
    Conversation getOrCreateConversation(Long userId, Long participantId);
    Conversation getConversationById(Long conversationId);
    void updateConversation(Conversation conversation);
    void markAsRead(Long conversationId, Long userId);
    List<Conversation> getAllConversations(Long userId);
    Integer getUnreadMessages(Long conversationId, Long userId);
}
